package com.rabbiter.oes.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.rabbiter.oes.dto.StudentExamDTO;
import com.rabbiter.oes.entity.ExamManage;
import com.rabbiter.oes.entity.Student;

import java.util.List;

public interface ExamManageService {

    /**
     * 不分页查询所有考试信息
     */
    List<ExamManage> findAll();

    IPage<ExamManage> findPage(Page<ExamManage> page);

    IPage<ExamManage> findPage(Page<ExamManage> page,String description, Integer collegeId, Integer majorId);

    /**
     * 学生查询考试试题、试卷信息
     * @param
     * @return
     */
    IPage<ExamManage> studentFindPage(StudentExamDTO dto, Student student);


    ExamManage findById(Integer examCode);

    int delete(Integer examCode);

    int update(ExamManage exammanage);

    int add(ExamManage exammanage);

    ExamManage findOnlyPaperId();


}
